package com.famdoc.Pojo.entity;

import com.famdoc.Pojo.dto.CheckForm;
import com.famdoc.Pojo.dto.VisitFrom;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 体检实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheckBody {
    private Integer id;
    private Integer doctorId; //体检医生id
    private Integer patientId; //体检患者id
    private LocalDateTime healthTime; //体检时间
    private String result; //结果说明
    private Integer checkItemId; //体检项目id

    public CheckBody(VisitFrom visitFrom){
        this.doctorId=visitFrom.getDoctorId();
        this.patientId=visitFrom.getPatientId();
        this.healthTime=visitFrom.getHealthTime();
        this.result= visitFrom.getResult();
    }

    public CheckBody(CheckForm checkForm){
        this.doctorId=checkForm.getDoctorId();
        this.patientId=checkForm.getPatientId();
        this.healthTime=checkForm.getHealthTime();
        this.result= checkForm.getResult();
    }

}
